StoryStateListener.enabled = false;
try {
  var count = 0;
  var stories = mgr.query("from Story");
  log.info("Updating story descriptions...");
  for (var i = 0; i < stories.size(); i++) {
    var story = stories.get(i);
    var description = story.getOldDescription();
    if (description != null) {
      count++;
      story.setOldDescription(null);
      story.setDescriptionContent(new WikiContent(description, WikiStyle.fitnesse));
      updater.update(story);
    }
  }
  log.info("Updated " + count + " stories.");
} finally {
  StoryStateListener.enabled = true;
}